package com.zbec.mdrs.constants;

import java.util.HashMap;
import java.util.Map;

public class Constants {
    //=====渣打银行  开始配置==========
    public static String BANK_CODE_F335 = "C1067132000013"; // 金融机构代码
//    public static String BANK_CODE_F335 = "A24"; // 金融机构代码
    public static String BANK_CODE_F336 = "渣打银行(中国)有限公司苏州分行"; //网点所属地区
    public static String BANK_CODE_F337 = "320505";//网点所属地区
//      public static String BANK_SITE = "SIP";
    //=======渣打银行  结束配置==========

     //======银行  开始配置==========
//    public static String BANK_CODE_F335 = "C1062332000014"; // 金融机构代码
//    public static String BANK_CODE_F335 = "3A8"; // 金融机构代码
//    public static String BANK_CODE_F336 = "星展银行(中国)有限公司苏州分行"; //网点所属地区
//    public static String BANK_CODE_F337 = "320508";//网点所属地区
    //=======三井银行  结束配置==========

    //=====东亚银行  开始配置==========
//    public static String BANK_CODE_F335 = "C1050232000026"; // 金融机构代码
//    public static String BANK_CODE_F335 = "809"; // 金融机构代码
//    public static String BANK_CODE_F336 = "东亚银行(中国)有限公司苏州分行"; //网点所属地区
//    public static String BANK_CODE_F337 = "320508";//网点所属地区
    //=======东亚银行  结束配置==========

    //=====汇丰银行  开始配置==========
//    public static String BANK_CODE_F335 = "C1050132000017"; // 金融机构代码
//    public static String BANK_CODE_F335 = "305"; // 金融机构代码
//    public static String BANK_CODE_F336 = "汇丰银行(中国)有限公司苏州分行"; //网点所属地区
//    public static String BANK_CODE_F337 = "320508";//网点所属地区
    //=======汇丰银行  结束配置==========

    //======三井银行  开始配置==========
//    public static String BANK_CODE_F335 = "C1056332000012"; // 金融机构代码
//    public static String BANK_CODE_F335 = "A37"; // 金融机构代码 it is deleted
//    public static String BANK_CODE_F336 = "三井住友银行(中国)有限公司苏州分行"; //网点所属地区
//    public static String BANK_CODE_F337 = "320505";//网点所属地区
    //=======三井银行  结束配置==========

    //======瑞穗实业银行  开始配置==========
//    public static String BANK_CODE_F335 = "C1056432000026"; // 金融机构代码
//    public static String BANK_CODE_F335 = "A34"; // 金融机构代码
//    public static String BANK_CODE_F336 = "瑞穗实业银行（中国）有限公司苏州分行"; //网点所属地区
//    public static String BANK_CODE_F337 = "320508";//网点所属地区
    //=======三井银行  结束配置==========

    public static String  DICTIONARY_CACHE = "DICTIONARY_CACHE";
    public final static int DICTIONARY_CODE = 1;
    public final static int DICTIONARY_DESC = 2;
    public final static int DICTIONARY_ORG_ID = 3;

    public static String BANK_ZONE_CODE_F370 = "1"; //承兑人/行所在地区

    public static String RECORD_STATUS_ADDED = "1";
    public static String RECORD_STATUS_ADDEDSKIPED = "2";
    public static String RECORD_STATUS_DELETED = "3";

    public static String REPORT_STATUS_ACTIVE = "A";
    public static String REPORT_STATUS_LOCKED = "L";
    public static String REPORT_STATUS_COMPLETED = "C";

    public static String EXIST_ERROR_YES = "Y";
    public static String EXIST_ERROR_NO = "N";

    public static String BANK_TYPE_FH = "1";
    public static String BANK_TYPE_ZH = "2";

    public static String Constants_BZ = "1501";
    public static String Constants_WJFL = "7541";
    public static String Constants_DKLB = "7537";
    public static String Constants_PJZL = "7555";
    public static String Constants_DBFS = "1107";
    public static String Constants_DKBZ = "PAID_TYPE";
    public static String Constants_YWLX = "BUSINESS_TYPE";
    public static String Constants_CDHDQ = "ZONE_CODE";
    public static String Constants_SBZT = "TASK_STATUS";
    public static String Constants_WDSSDQ = "320500";
    public static String Constants_REPORT_TYPE = "REPORT_TYPE";
    public static String Constants_IMPORT_TYPE = "IMPORT_TYPE";

    public static final  String BUSINESS_TYPE_LOAN = "23";
    public static final  String BUSINESS_TYPE_DISCOUNT = "24";
    public static final  String BUSINESS_TYPE_DRAFTS = "25";
    public static final  String BUSINESS_TYPE_ENTRUSTED_LOAN= "26";
    public static final  String BUSINESS_TYPE_GUARANTEE= "27";

    public static final String BUSINESS_TYPE_FINANCE = "28";
    public static final String BUSINESS_TYPE_BAOLI= "29";

    public static String REPORT_TASK_STATUS_GEN_CMP_REP = "GCR";
    public static String REPORT_TASK_STATUS_GEN_CMP_RE_REP = "GCRR";
    public static String REPORT_TASK_STATUS_VRY_CMP_REP_CMP = "VCRC";
    public static String REPORT_TASK_STATUS_VRY_ERR_REP_ERR = "VERE";
    public static String REPORT_TASK_STATUS_VRY_MIS_ALM_REP_CMP = "VMARC";

    public static String REPORT_FILE_TYPE_REPORT = "R";
    public static String REPORT_FILE_TYPE_LOG = "L";

    public static String REPORT_FILE_FOLDER = "files";
    public static String REPORT_FILE_EXTENSION = ".txt";
    public static String REPORT_FILE_EXT_XLS = ".xls";

    public static String SOURCE_MBT = "MBT";
    public static String SOURCE_DRMAP = "MAP";
    public static String SOURCE_IMPORT = "IMP";

    public static String DEFAULT_PASSWORD = "test@123";
    public static Integer EXPIRE_DAY_NUMBER = 30;


    public static Map<String,String> CODE_TYPE_MAP = new HashMap<String,String>();
    public static Map<String,String[]> VALIDATION_FIELDS_LOAN = new HashMap<String,String[]>();
    public static Map<String,String[]> VALIDATION_FIELDS_DISCOUNT = new HashMap<String,String[]>();
    public static Map<String,String[]> VALIDATION_FIELDS_DRAFTS = new HashMap<String,String[]>();
    public static Map<String,String[]> VALIDATION_FIELDS_ENTRUSTED_LOAN = new HashMap<String,String[]>();
    public static Map<String,String[]> VALIDATION_FIELDS_GUARANTEE = new HashMap<String,String[]>();

    public static Map<String,String> IMPORT_FIELDS_LOAN = new HashMap<String,String>();
    public static Map<String,String> IMPORT_FIELDS_AWARD = new HashMap<String,String>();
    public static Map<String,String> IMPORT_FIELDS_DISCOUNT = new HashMap<String,String>();//2012-12-17 Discount
    public static Map<String,String> IMPORT_FIELDS_DRAFTS = new HashMap<String,String>();//2012-12-17 Discount
    public static Map<String,String> IMPORT_FIELDS_ENTRUSTED_LOAN= new HashMap<String,String>();//2012-12-17 Discount
    public static Map<String,String> IMPORT_FIELDS_GUARANTEE = new HashMap<String,String>();//2012-12-17 Discount

    static {
        CODE_TYPE_MAP.put("bz", "1501");
        CODE_TYPE_MAP.put("pjzl", "7555");
        CODE_TYPE_MAP.put("wjfl", "7541");
        CODE_TYPE_MAP.put("sjfl", "7539");
        CODE_TYPE_MAP.put("dklb", "7537");


        VALIDATION_FIELDS_LOAN.put("zzjgdm", new String[]{"L:10"});
        VALIDATION_FIELDS_LOAN.put("sjsj", new String[]{"M","L:6","N"});
        VALIDATION_FIELDS_LOAN.put("qymc", new String[]{"M","L:80"});
        VALIDATION_FIELDS_LOAN.put("dkkbm", new String[]{"L:16"});
        VALIDATION_FIELDS_LOAN.put("nbpj", new String[]{"L:10"});
        VALIDATION_FIELDS_LOAN.put("dkjjh", new String[]{"L:20"});
        VALIDATION_FIELDS_LOAN.put("bz", new String[]{"M","L:3"});
        VALIDATION_FIELDS_LOAN.put("jbll", new String[]{"LL"});
        VALIDATION_FIELDS_LOAN.put("llfd", new String[]{"LL"});
        VALIDATION_FIELDS_LOAN.put("sjll", new String[]{"M","LL"});
        VALIDATION_FIELDS_LOAN.put("dklb", new String[]{"M","L:20"});
        VALIDATION_FIELDS_LOAN.put("dkffje", new String[]{"L:16","JE"});
        VALIDATION_FIELDS_LOAN.put("dkye", new String[]{"M","L:16","JE"});
        VALIDATION_FIELDS_LOAN.put("fkrq", new String[]{"M","L:10","D"});
        VALIDATION_FIELDS_LOAN.put("dqrq", new String[]{"M","L:10","D"});
        VALIDATION_FIELDS_LOAN.put("zqrq", new String[]{"L:10","D"});
        VALIDATION_FIELDS_LOAN.put("dbfs", new String[]{"M","L:8"});
        VALIDATION_FIELDS_LOAN.put("wjfl", new String[]{"M","L:4"});
        VALIDATION_FIELDS_LOAN.put("qxje", new String[]{"L:16","JE"});

        VALIDATION_FIELDS_DISCOUNT.put("zzjgdm",new String[]{"M","L:10"}); //2012-12-7
        VALIDATION_FIELDS_DISCOUNT.put("txsqrmc",new String[]{"M","L:80"});
        VALIDATION_FIELDS_DISCOUNT.put("sjsj",new String[]{"M","L:6","N"});
        VALIDATION_FIELDS_DISCOUNT.put("pjzl",new String[]{"M","L:1"});
        VALIDATION_FIELDS_DISCOUNT.put("cdhmc",new String[]{"L:80"});
        VALIDATION_FIELDS_DISCOUNT.put("cdhdq",new String[]{"M","L:1"});
        VALIDATION_FIELDS_DISCOUNT.put("bz",new String[]{"M","L:3"});
        VALIDATION_FIELDS_DISCOUNT.put("txje",new String[]{"M","L:16","JE"});
        VALIDATION_FIELDS_DISCOUNT.put("txrq",new String[]{"M","L:10","D"});
        VALIDATION_FIELDS_DISCOUNT.put("cdrq",new String[]{"M","L:10","D"});
        VALIDATION_FIELDS_DISCOUNT.put("txll",new String[]{"M","LL"});
        VALIDATION_FIELDS_DISCOUNT.put("pmje",new String[]{"L:16","JE"});
        VALIDATION_FIELDS_DISCOUNT.put("wjfl",new String[]{"M","L:4"});

        VALIDATION_FIELDS_DRAFTS.put("zzjgdm",new String[]{"M","L:10"});
        VALIDATION_FIELDS_DRAFTS.put("sjsj",new String[]{"M","L:6","N"});
        VALIDATION_FIELDS_DRAFTS.put("cprmc",new String[]{"M","L:80"});
        VALIDATION_FIELDS_DRAFTS.put("jrjgbm",new String[]{"M"});
        VALIDATION_FIELDS_DRAFTS.put("bz", new String[]{"M","L:3"});
        VALIDATION_FIELDS_DRAFTS.put("hpje",new String[]{"M"});
        VALIDATION_FIELDS_DRAFTS.put("hpcdr",new String[]{"M","L:10","D"});
        VALIDATION_FIELDS_DRAFTS.put("hpdqr",new String[]{"M","L:10","D"});
        VALIDATION_FIELDS_DRAFTS.put("hpfkrq",new String[]{"M","L:10","D"});
        VALIDATION_FIELDS_DRAFTS.put("wjfl",new String[]{"M","L:4"});

        VALIDATION_FIELDS_ENTRUSTED_LOAN.put("sjsj", new String[]{"M","L:6","N"});
        VALIDATION_FIELDS_ENTRUSTED_LOAN.put("jrjgbm", new String[]{"M"});
        VALIDATION_FIELDS_ENTRUSTED_LOAN.put("wtrzzjgdm", new String[]{"M","L:10"});
        VALIDATION_FIELDS_ENTRUSTED_LOAN.put("jkrzzjgdm", new String[]{"M","L:10"});
        VALIDATION_FIELDS_ENTRUSTED_LOAN.put("bz", new String[]{"M","L:3"});
        VALIDATION_FIELDS_ENTRUSTED_LOAN.put("ywfse", new String[]{"M"});
        VALIDATION_FIELDS_ENTRUSTED_LOAN.put("ywye", new String[]{"M"});
        VALIDATION_FIELDS_ENTRUSTED_LOAN.put("dkffrq", new String[]{"M","L:10","D"});
        VALIDATION_FIELDS_ENTRUSTED_LOAN.put("dkdqrq", new String[]{"M","L:10","D"});

        VALIDATION_FIELDS_GUARANTEE.put("bdbrzzjgdm", new String[]{"M"});
        VALIDATION_FIELDS_GUARANTEE.put("sjsj", new String[]{"M"});
        VALIDATION_FIELDS_GUARANTEE.put("bz", new String[]{"M","L:3"});
        VALIDATION_FIELDS_GUARANTEE.put("dbywzl", new String[]{"M"});
        VALIDATION_FIELDS_GUARANTEE.put("dbye", new String[]{"M"});
        VALIDATION_FIELDS_GUARANTEE.put("dbksrq", new String[]{"M"});
        VALIDATION_FIELDS_GUARANTEE.put("dbdqrq", new String[]{"M"});
        VALIDATION_FIELDS_GUARANTEE.put("wjfl", new String[]{"M"});




        IMPORT_FIELDS_LOAN.put("REF_NO","dkjjh");
        IMPORT_FIELDS_LOAN.put("INT_RATE","sjll");
        IMPORT_FIELDS_LOAN.put("ENSURE_TYPE","dbfs");

        IMPORT_FIELDS_AWARD.put("KRMC","qymc");
        IMPORT_FIELDS_AWARD.put("DWDM","zzjgdm");

        IMPORT_FIELDS_DISCOUNT.put("KRMC","txsqrmc");
        IMPORT_FIELDS_DISCOUNT.put("DWDM","zzjgdm");
        IMPORT_FIELDS_DISCOUNT.put("LL","txll");
        IMPORT_FIELDS_DISCOUNT.put("REF_NO","pjnbbh");

        IMPORT_FIELDS_DRAFTS.put("KRMC","cprmc");
        IMPORT_FIELDS_DRAFTS.put("DWDM","zzjgdm");
        IMPORT_FIELDS_DRAFTS.put("REF_NO","cdxyh");


        IMPORT_FIELDS_ENTRUSTED_LOAN.put("REF_NO","jjh");
        IMPORT_FIELDS_ENTRUSTED_LOAN.put("ENTRUST_ORG_CODE","wtrzzjgdm");
        IMPORT_FIELDS_ENTRUSTED_LOAN.put("LOAN_ORG_CODE","jkrzzjgdm");
        IMPORT_FIELDS_ENTRUSTED_LOAN.put("LL","ll");

    }
    public static Map<String,String> CURRENCY_MAP = new HashMap<String,String>();
       static {
           CURRENCY_MAP.put("CNY", "01");
           CURRENCY_MAP.put("GBP", "12");
           CURRENCY_MAP.put("HKD", "13");
           CURRENCY_MAP.put("USD", "14");
           CURRENCY_MAP.put("CHF", "15");
           CURRENCY_MAP.put("DEM", "16");
           CURRENCY_MAP.put("FRF", "17");
           CURRENCY_MAP.put("SGD", "18");
           CURRENCY_MAP.put("NLG", "20");
           CURRENCY_MAP.put("SEK", "21");
           CURRENCY_MAP.put("DKK", "22");
           CURRENCY_MAP.put("NOK", "23");
           CURRENCY_MAP.put("ATS", "24");
           CURRENCY_MAP.put("BEF", "25");
           CURRENCY_MAP.put("ITL", "26");
           CURRENCY_MAP.put("JPY", "27");
           CURRENCY_MAP.put("CAD", "28");
           CURRENCY_MAP.put("AUD", "29");
           CURRENCY_MAP.put("ESP", "31");
           CURRENCY_MAP.put("MYR", "32");
           CURRENCY_MAP.put("XEU", "33");
           CURRENCY_MAP.put("FIM", "42");
           CURRENCY_MAP.put("MOP", "81");
           CURRENCY_MAP.put("THB", "84");
           CURRENCY_MAP.put("NZD", "87");
           CURRENCY_MAP.put("CSF", "95");
           CURRENCY_MAP.put("EUR", "96");
       }
}
